package com.mimi.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * @Author:徐向
 * @Description:
 * @Date: Created in 16:40 2017/10/16
 */
public class JsonUtil {
    public static String toJson(Object object) {
        GsonBuilder gsonBuilder = new GsonBuilder();
        gsonBuilder.setPrettyPrinting();
        Gson gson = gsonBuilder.create();
        return gson.toJson(object);
    }
}
